package cn.zebra.dev.product.module.cart.dao;

import cn.zebra.dev.product.module.cart.entity.CartEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;

/**
 * @author runnable@sina.cn
 */
public interface CartDao extends BaseMapper<CartEntity> {

    Collection<CartEntity> list(Long userId);

    Integer setNum(@Param("cartId") Long cartId, @Param("num") Long num, @Param("userId") Long userId);
}
